﻿using Microsoft.Extensions.DependencyInjection;

namespace Worldme.YHChatSDK.Framework.Core
{
    public static class ServiceCollectionExtensions
    {
        public static IServiceCollection AddYHChatEventListener(this IServiceCollection services)
        {
            // 注册控制器所在的程序集
            services.AddControllers()
                    .AddApplicationPart(typeof(ServiceCollectionExtensions).Assembly);

            return services;
        }
    }
}
